﻿/********************************************************************************
 * Developed by Phil Tyler (http://www.laidbackcoder.co.uk)
 * 
 * Cryptosolic is Licensed under the GNU Lesser General Public License (LGPL)
 * http://cryptosolic.codeplex.com/license
 * *****************************************************************************/
using System;
using System.Security.Cryptography;
using System.Text;

namespace Cryptosolic.Security.Hashing
{
    /// <summary>
    /// SHA1 Hashing Implementation
    /// </summary>
    public class Sha1 : HashingAlgorithm
    {
        /// <summary>
        /// Hash a Human Readable Data using SHA1
        /// </summary>
        /// <param name="data">Data to be Hashed</param>
        /// <returns>Hashed String</returns>
        public override CipherText HashData(byte[] data)
        {
            return base.PerformHashOperation(data, new SHA1Managed());
        }
    }
}
